const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer:{
    open:true,
    host:'localhost',
    proxy:{
      '/api2':{
        target:'http://1.116.64.64:5004/api2', //跨域请求地址
        changeOrigin:true,   //允许跨域
        pathRewrite:{
          '^/api2':''
        }
      }
    }
  }
})
